import "echarts-liquidfill";
var value = 0.45;
export const memberOption = () => {
  return {
    title: [
      {
        text: "会员入会率",
        x: "32%",
        y: "80%",
        textStyle: {
          fontSize: 16,
          fontWeight: "100",
          color: "#fff",
          lineHeight: 16,
          textAlign: "center",
        },
      },
    ],
    series: [
      {
        type: "liquidFill",
        radius: "60%",
        center: ["50%", "56%"],
        color: [
          {
            type: "linear",
            x: 0,
            y: 0,
            x2: 0,
            y2: 1,
            colorStops: [
              {
                offset: 0,
                color: "#446bf5",
              },
              {
                offset: 1,
                color: "#2ca3e2",
              },
            ],
            globalCoord: false,
          },
        ],
        data: [value, value, value, value], // data个数代表波浪数
        backgroundStyle: {
          borderWidth: 10,
          color: "RGBA(51, 66, 127, 0.7)",
        },
        label: {
          normal: {
            textStyle: {
              fontSize: 30,
              color: "#fff",
            },
          },
        },
        outline: {
          borderDistance: 0,
          itemStyle: {
            borderWidth: 2,
            borderColor: "#112165",
          },
        },
      },
    ],
  };
};
